package com.servlet.demo.dto;

import com.servlet.demo.enums.UserType;

public class User {
    // 用户类型
    private UserType userType;
    // 用户ID
    private Long userId;
    // 账号
    private String account;
    // 密码
    private String password;

    public User() {
    }

    public User(UserType userType, Long userId, String account, String password) {
        this.userType = userType;
        this.userId = userId;
        this.account = account;
        this.password = password;
    }

    public UserType getUserType() {
        return userType;
    }

    public void setUserType(UserType userType) {
        this.userType = userType;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
